package com.ccy.product.exception;

import org.springframework.validation.BindingResult;

public class ValidException extends RuntimeException {
    private final BindingResult bindingResult;

    public ValidException(BindingResult bindingResult) {
        this.bindingResult = bindingResult;
    }

    public BindingResult getBindingResult() {
        return bindingResult;
    }
}

